package com.groupbuying.settleconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: cuich
 * @Email cuichanghao@linku.com.cn
 * @Date: 2019/5/28 17:47
 * @Des 服务商中心接口连接器
 */
@Service
@FeignClient(name = "bus-store")
public interface StoreFeign {

    // 获取商户ID
    @RequestMapping(value = "/counter/getStoreIdAndRuleIdByCounterId", method = RequestMethod.GET)
    Map<String,Object> getMerchantsId(@RequestParam Map<String, Object> params);

    //修改商户余额
    @RequestMapping(value = "/storeVirtualAccount/dealStoreVirtualAccount", method = RequestMethod.GET)
    Map<String,Object> dealStoreVirtualAccount(@RequestParam Map<String, Object> params);
}